package com.zym.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor

public class EmpVo {

    @ExcelProperty(value = "员工编号")
    @NotNull(message = "员工编号不能为空")
    private Integer empno;

    @ExcelProperty(value = "员工名称")
    @NotBlank(message = "员工名称不能为空")
    private String ename;

    @ExcelProperty(value = "工作")
    private String job;

    @ExcelProperty(value = "主管编号")
    private Integer mgr;

    @ExcelProperty(value = "入职日期")
    private Date hiredate;

    @ExcelProperty(value = "薪资")
    private BigDecimal sal;


    @ExcelProperty(value = "奖金")
    private BigDecimal comm;


    @ExcelProperty(value = "所属部门")
    private String deptno;
    @ExcelProperty(value = "错误信息")
    private String errorMsg;



}

